// 面经数据相关请求
import request from '@/utils/request'

// 请求文章列表
export const articleApi = params => {
  return request({
    url: '/h5/interview/query',
    method: 'GET',
    params: params
  })
}

// 请求文章详情
export const articleDetailApi = id => {
  return request({
    url: '/h5/interview/show',
    method: 'GET',
    params: {
      id: id
    }
  })
}

// 点赞收藏相关
export const articleLikeApi = data => {
  return request({
    url: '/h5/interview/opt',
    method: 'POST',
    data: data
  })
}

// 获取点赞和收藏的内容
export const getArticleLikeApi = params => {
  return request({
    url: '/h5/interview/opt/list',
    method: 'GET',
    params: params
  })
}
